package com.niiwoo.civet.trade.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @Author: wuke
 * @Description: 审核退回用户处理方案枚举 1修改授信资料、2修改借款资料
 * @Date: Created in 16:11 2018/1/8
 */
@Getter
@AllArgsConstructor
public enum ProcessSchemeEnum {
    UPDATE_CREDIT_INFO((byte) 1, "修改授信资料"),
    UPDATE_LOAN_INFO((byte) 2, "修改借款资料");

    private final Byte value;
    private final String desc;

    public static ProcessSchemeEnum enumOf(Byte value) {
        for (ProcessSchemeEnum unitEnum : values()) {
            if (unitEnum.value.equals(value)) {
                return unitEnum;
            }
        }
        return null;
    }
}
